package com.lanyan.system.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.lanyan.common.annotation.RequiredField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lanyan.system.domain.Product;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lanyan.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lanyan.common.core.domain.BaseEntity;

/**
 * 收藏Vo对象 collect
 *
 * @author lanyan
 * @date 2024-11-26
 */
@Data
public class CollectVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "collect_id", type = IdType.AUTO)
    @RequiredField(update = true,delete = true)
    private Long collectId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 所属用户 */
    @Excel(name = "所属用户")
    @ApiModelProperty("所属用户")
    private Long accountId;

    /** 所属商品 */
    @Excel(name = "所属商品")
    @ApiModelProperty("所属商品")
    private Long productId;

    @TableField(exist = false)
    private ProductVo productVo;
}
